package com.xinqi.modules.stats.score.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.stats.score.domain.CourseTotalScoreBaseEntity;
import com.xinqi.modules.stats.score.domain.CourseTotalScoreContentEntity;
import com.xinqi.modules.stats.score.dto.req.CourseTotalScoreContentUpdateDTO;
import com.xinqi.modules.stats.score.dto.req.CourseTotalScoreCreateDTO;
import com.xinqi.modules.stats.score.dto.rsp.CourseTotalScoreContentResultDTO;
import org.mapstruct.Mapper;

/**
 * 课程作业配置表转换
 *
 * @author: system
 * @date: 2023/03/08
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class CourseTotalScoreContentConvert {

    public abstract CourseTotalScoreContentResultDTO convert(CourseTotalScoreContentEntity s);

    public abstract CourseTotalScoreContentEntity convert(CourseTotalScoreBaseEntity s);

    public abstract CourseTotalScoreContentEntity create(CourseTotalScoreCreateDTO s);

    public abstract CourseTotalScoreContentEntity update(CourseTotalScoreContentUpdateDTO s);

}
